<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<html>
<head>
<link rel="stylesheet" type="text/css" href="/resources/main.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div id="headerBox">
		<a href="/event/list">Lista</a>&nbsp;<a href="/event/list?grp">Grupy</a>
	</div>
	<div id="contentBox">
		<c:forEach items="${eventSourceGroups}" var="groupItem">
			<h3>
				<c:out value="${groupItem.name}" />
			</h3>

			<table class="grid">
				<tbody>
					<c:forEach var="item" items="${groupItem.eventSources}" varStatus="status">
						<tr>
							<td><c:out value="${item.eventName}" /></td>
							<td><fmt:formatDate value="${item.eventTime}" pattern="HH:mm" /></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</c:forEach>
	</div>
</body>
</html>
